<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑设备</title>
    <link rel="stylesheet" href="{{ url_for('static',filename='CSS/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static',filename='CSS/admin.css') }}">
    <script src="{{ url_for('static',filename='JS/jquery-3.5.1.js') }}"></script>
    <script src="{{ url_for('static',filename='JS/admin.js') }}"></script>
</head>
<body>

<div class="dev_info">
    <form class="form-horizontal" role="form" action="" method="post">
        <div class="form-group">
            <label for="serialnumber" class="col-sm-4 control-label">序列号</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="serialnumber" id="serialnumber" value="{{ data.serialnumber }}" disabled/>
            </div>
        </div>

        <div class="form-group">
            <label for="model" class="col-sm-4 control-label">型号</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" placeholder="型号" autocomplete="off" name="model" id="model" value="{{ data.model }}" />
            </div>
        </div>

        <div class="form-group">
            <label for="cpu_model" class="col-sm-4 control-label">CPU型号</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" placeholder="CPU型号" autocomplete="off" name="cpu_model" id="cpu_model" value="{{ data.cpu_model }}">
            </div>
        </div>

        <div class="form-group">
            <label for="cpu_cores" class="col-sm-4 control-label">CPU核数</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" autocomplete="off" placeholder="CPU核数 如：2*64core" name="cpu_cores" id="cpu_cores" value="{{ data.cpu_cores }}"/>
            </div>
        </div>

        <div class="form-group">
            <label for="bmc_address" class="col-sm-4 control-label">BMC地址</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" placeholder="BMC地址" autocomplete="off" name="bmc_address" id="bmc_address" value="{{ data.bmc_address }}"/>
            </div>
        </div>

        <div class="form-group">
            <label for="purpose" class="col-sm-4 control-label">用途</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" placeholder="用途" autocomplete="off" name="purpose" id="purpose" value="{{ data.purpose }}"/>
            </div>

        </div>

        <div class="form-group">
            <label for="owner" class="col-sm-4 control-label">使用者</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" placeholder="使用者" autocomplete="off" name="owner" id="owner" value="{{ data.owner }}"/>
            </div>
        </div>

        <div class="form-group">
            <label for="others" class="col-sm-4 control-label">备注</label>
            <div class="col-sm-4">
                <textarea class="form-control" rows="3" name="others" id="others">{{ data.others }}</textarea>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-4 col-sm-4">
                <input type="button" class="btn btn-success" id="edit_confirm" name="edit_confirm" value="修改" />
                <input type="button" class="btn btn-default" id="back" name="back" value="返回" />
            </div>
         </div>
    </form>
</div>

</body>
</html>